package net.toocruel.iqismart.entity.user;

import net.toocruel.iqismart.entity.rbac.User;
import net.toocruel.iqismart.entity.base.BaseEntity;

import javax.persistence.*;

/**
 * @Description
 * @Auther sty
 * @createTime 2018/5/8 上午11:35
 */
@Entity
public class UserOauth extends BaseEntity {
    private static final long serialVersionUID = 6852270054598440662L;
    private String authType;
    private String nickname;
    private String avatar;
    private String accessToken;
    private String refreshToken;
    private int expiresIn;

    public UserOauth() {
    }

    public UserOauth(User user) {
        super();
    }

    public String getAuthType() {
        return authType;
    }

    public void setAuthType(String authType) {
        this.authType = authType;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }
}
